Skip to main content

Chain UIDs

Queries the factory address, unique identifier (UID), name and logo for a specified chain using its chain ID.

query Chain_uids($chainId: String!) {
chains {
chain_uids(chain_id: $chainId) {
factory_address
chain_uid
display_name
logo
}
}
}

Example

curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Chain_uids($chainId: String!) {\n chains {\n chain_uids(chain_id: $chainId) {\n factory_address\n chain_uid\n display_name\n logo\n }\n }\n}","variables":{"chainId":"nibiru-testnet-1"}}'

Open in Playground

Arguments

  • chainId (String!): The unique identifier of the chain.

Return Fields

FieldTypeDescription
factory_addressStringThe address of the factory contract.
chain_uidStringThe unique identifier (UID) of the chain.
display_nameStringThe display name of the chain.
logoStringThe URL or reference to the chain's logo image.